﻿@model IEnumerable<YogaStudio.Data.Domain.WaiverRequest>
@{
    ViewBag.Title = "MyWaiverRequest";
}

@{
    ViewBag.Title = "AllWaivers";
}
<div class="main">
    <div class="content">
        <div class="section group">
            <div class="col span_2_of_3">
                <div class="contact-form">
                    <h2>My Waiver Request</h2>
                    <div style="float: right;">
                        @Html.ActionLink("Request Waive", "RequestWaiver", null, new { @class = "btn", @id = "bluebck" })
                    </div>
                    <div class="datagrid">
                        <table id="box-table-a">
                            <tr>
                                <th>
                                    @Html.DisplayNameFor(model => model.Id)
                                </th>
                                
                                <th>
                                    @Html.DisplayNameFor(model => model.Course.CourseName)
                                </th>
                                <th>
                                    @Html.DisplayNameFor(model => model.Status)
                                </th>
                                <th></th>
                            </tr>
                            @{
                            int count = 0;
                            }
                            @foreach (var item in Model)
                            {
                                count++;
                                
                                <tr>
                                    <td>
                                        @count                                        
                                    </td>
                                    
                                    <td>
                                        @Html.DisplayFor(modelItem => item.Course.CourseName)
                                    </td>
                                    <td>
                                        @Html.DisplayFor(modelItem => item.Status)
                                    </td>
                                    <td>
                                        @Html.ActionLink("Details", "Details", new { id = item.Id })
                                    </td>
                                </tr>
                            }

                        </table>
                    </div>
      
                </div>
            </div>
        </div>
    </div>
</div>